package api.ejb;
import java.util.List;
import javax.ejb.Local;

import p3_entities.Friend;
import p3_entities.Usermessage;
import p3_entities.Userprofile;

import api.InvalidAuthenticationException;


@Local
public interface ISocializer {
	
	
	List<String> searchFriends(String searchString) 
		throws InvalidAuthenticationException;
	
	boolean sendFriendshipInvitation(int fromId, int toId)
		throws InvalidAuthenticationException;
	
	List<Friend> getPendingFriendshipRequests(int uid)
		throws InvalidAuthenticationException;
	
	boolean confirmFriendshipRequest(int uid, int requesterdId)
		throws InvalidAuthenticationException;
	
	boolean isFriendWith(int baseId, int friendId)
		throws InvalidAuthenticationException;
	
	List<Userprofile> getMyFriends(int uid)
		throws InvalidAuthenticationException;
	
}
